package qlsl.androiddesign.adapter.subadapter;

import java.util.List;

import com.qlsl.androiddesign.kuaiwa.R;

import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import qlsl.androiddesign.activity.baseactivity.BaseActivity;
import qlsl.androiddesign.adapter.baseadapter.BaseAdapter;
import qlsl.androiddesign.entity.otherentity.ShoopChildList;

/**
 * 轮播一级分类列表<br/>
 *
 */
public class BannerCategoryAdapter extends BaseAdapter<ShoopChildList.RowsBean> {

	public BannerCategoryAdapter(BaseActivity activity, List<ShoopChildList.RowsBean> list) {
		super(activity, list);
	}

	public View getView(int position, View convertView, ViewGroup parent) {
		convertView = getItemView(convertView, R.layout.listitem_banner_category);

		TextView tv_text = getView(convertView, R.id.vehicle_fragment_item_title);

		ShoopChildList.RowsBean item = getItem(position);

		tv_text.setText(item.getSubtiertype());

		return convertView;
	}
}
